home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio
/
Ham Radio CD-ROM (Emerald Software) (1995).ISO
/
misc
/
commo41
/
commo.doc
< prev
next >
Wrap
Text File
|
1990-03-11
|
67KB
|
1,899 lines
{COMMO} (tm)
Telecommunications for PC Compatibles
by
Fred P. Brucker
Post Office Box 9103
Santa Rosa, CA 95405
Release 4.1
March 12, 1990
This program and associated documentation are the property of the
author and may not be sold without permission. They may be freely
distributed, unaltered and as a unit, via electronic bulletin board
systems. Permission to distribute on diskette or in any other
manner must be obtained in writing.
The author does not guarantee the program to be free from defects
and may not be held responsible for loss caused by such. Your use
of this program constitutes your acceptance of these terms.
(C) Copyright 1989,1990 Fred P. Brucker All Rights Reserved
Welcome to {COMMO} (tm) page ii
---------------------
Licensing Information
---------------------
{COMMO} is not a public domain program and is not free. It is
classified as "SHAREWARE." What this means is that you may use the
program for 30 days to determine its suitability to your
application. If after that time you decide to continue using
{COMMO} you must pay the registration fee.
{COMMO} is a unique program and represents a great deal of work. A
lot of functionality has been compressed into a small package, and
more features are being added on a continuing basis. If you find
{COMMO} useful and enjoyable, you can help support future
improvements by registering your copy.
A single-user license is $25.00. A diskette (5.25" or 3.5") will be
provided for a $5.00 handling fee. Send a check or money order (US
funds) to the address on the cover page of this document. Details
and multi-user (site) license information are provided in the file
REGISTER.FRM.
Thank you, and I hope you enjoy {COMMO}.
Fred P. Brucker
Welcome to {COMMO} (tm) page iii
Contents
--------
Principal Features . . . . . . . . . . . . . . . . . . . . . 1
The Best Way to Learn {COMMO} Quickly . . . . . . . . . . . 2
Operations Guide / Command Summary . . . . . . . . . . . . . 3
Uploading / Downloading . . . . . . . . . . . . . . . . . . 6
The Internal Editor . . . . . . . . . . . . . . . . . . . . 6
Getting Started . . . . . . . . . . . . . . . . . . . . . . 7
Command Line Options . . . . . . . . . . . . . . . . . . . 8
{COMMO} Support Files . . . . . . . . . . . . . . . . . . . 9
Initialization Procedure . . . . . . . . . . . . . . . . . . 10
Terminal Screen . . . . . . . . . . . . . . . . . . . . . . 10
How to Use Online Help . . . . . . . . . . . . . . . . . . . 11
Modifying the Help File . . . . . . . . . . . . . . . . . . 11
Programming {COMMO} Macros . . . . . . . . . . . . . . . . . 12
Macro-id and Function Summary . . . . . . . . . . . . . . . 13
Additional Macro File Rules . . . . . . . . . . . . . . . . 13
Executing Macros . . . . . . . . . . . . . . . . . . . . . . 13
Additional Macro Execution Rules . . . . . . . . . . . . . . 14
{COMMO} Macro Functions . . . . . . . . . . . . . . . . . . 15
Table of {COMMO} Key-id's . . . . . . . . . . . . . . . . . 27
Appendix A Setting Up Your Modem . . . . . . . . . . . . . 28
Appendix B {COMMO} and DESQview . . . . . . . . . . . . . 30
Appendix C XON/XOFF Protocol . . . . . . . . . . . . . . . 31
Appendix D Strings in {COMMO} Files . . . . . . . . . . . 32
DESQview is a trademark of Quarterdeck Office Systems
DSZ is a product of Omen Technology Inc.
LIST is a product of Vernon D. Buerg
Welcome to {COMMO} (tm) page 1
------------------
Principal Features
------------------
{COMMO} is small in size and executes quickly.
Powerful Macro Processor allows you to:
1) write macro "programs" to automate many common operations such as
logins, reading messages, uploading/downloading. You can sit
back and watch {COMMO} do the work -- or you can let {COMMO}
perform these tasks in the middle of the night while you sleep.
2) assign any Function Key, Alt Key or Keypad Key to send a string
to the modem, execute any DOS command, start any macro or
initiate any {COMMO} function.
3) edit all macros without exiting {COMMO}, using the Internal
Editor.
Unlimited entries in the Dialing Directory. Multi Number Dialing
supported from the command line. AutoBaud detect. Macro may be
linked to each directory entry.
DESQview aware. {COMMO} operates in about 35k, will execute with
DSZ in a 100k DV window (depends on support file sizes).
Built-in ANSI emulation. ANSI keypad keys configured in Macro File
to access full-screen editors.
ASCII Upload to send messages and text files. Features line pacing
and blank line expansion.
Configuration File, Dialing Directory and Macro File may be edited
with full-function Internal Editor. String search available in all
file windows. Most features are fully configurable.
Support for any four serial ports. Port addresses and IRQ's are
configurable. Port speeds up to 115,200 bps (machine dependent).
Support for NS16550A buffered UART chip.
Serial port signal lights may be displayed on status line, including
send and receive.
Capture Log to save all text from the screen to a disk file.
Screen Image Dump to save current screen to a disk file.
Print Log to write all text from the screen to the printer.
Extensive context-related Online Help.
And {COMMO} is elegant, easy to learn and fun to use!
Welcome to {COMMO} (tm) page 2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-------------------------------------
The Best Way to Learn {COMMO} Quickly
-------------------------------------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1) Read the section "Operations Guide / Command Summary" for a
quick introduction to all of {COMMO}'s commands and features.
2) Read Appendix A "Setting Up Your Modem" for some very important
instructions pertaining to your specific hardware.
3) Read the section "Getting Started" which will get you up and
running.
4) Use the extensive Online Help to learn the operating details
of the program as you use it.
How is it pronounced??? Just like "comma" (,) except for the last
letter. It's technical jargon for "communications."
Welcome to {COMMO} (tm) page 3
----------------------------------
Operations Guide / Command Summary
----------------------------------
Use {COMMO}'s Online (context-related) Help facility to obtain
operating details for most features. This section is an overview of
{COMMO} features and commands, which you should peruse to gain
rapid, overall familiarity with the program.
(A special section in this document "Programming {COMMO} Macros" is
devoted to the Macro Processor. Additionally there are several
appendices which give details about special program features.)
Note: the Alt Keys shown are the built-in default key assignments
for the various {COMMO} functions. Once you are familiar with these
functions you may reassign any of the keys using the Macro
Processor.
[Alt-A] ASCII Upload
------- ------------
Sends prepared messages and other text files to the remote system.
This command features Line Pacing or XON/XOFF protocol to control
the flow of incoming data.
[Alt-B] Send Break Signal
------- -----------------
Sends a Break Signal, used by some systems to interrupt an
operation.
[Alt-C] Clear Screen
------- ------------
Clears the Terminal Screen to the default colors.
[Alt-D] Dialing Directory
------- -----------------
Maintains a data base of telephone numbers and related information.
Dials numbers to establish connections with remote systems.
Directory can be updated with the Internal Editor.
[Alt-G] Configuration File
------- ------------------
Contains settings for many of {COMMO}'s operating parameters. Can
be modified with the Internal Editor. Details in Online Help.
[Alt-H] Online Help
------- -----------
Context-related Online Help is available at any time from anywhere
within {COMMO}. See also the section "How to Use Online Help."
Welcome to {COMMO} (tm) page 4
[Alt-I] Screen Image Save
------- -----------------
Appends the image of the current Terminal Screen to a disk file.
Very useful for selectively recording information. Allows you to
change the name of the Screen Image File at any time. See also
"Capture File Options."
[Alt-L] Communication Parameters
------- ------------------------
Changes the serial port, data rate or data format from the Terminal
Screen.
[Alt-M] Macro Processor
------- ---------------
Executes and maintains {COMMO} macros. See the section "Programming
{COMMO} Macros" which shows you how easily you can automate program
operations, link to external protocols (for Uploading/Downloading),
assign keys and perform a myriad of other functions. The Macro File
is maintained with the Internal Editor.
[Alt-O] Send Modem Initialization String
------- --------------------------------
Used to re-initialize your modem, if necessary.
[Alt-P] Send Current Password
------- ---------------------
Sends Password String defined by the last dialing operation. This
feature allows a different Password for each system that you call.
[Alt-Q] Quit Call
------- ---------
Places modem "on-hook" by dropping DTR. Used to "hang up" the
telephone line.
[Alt-S] Shell to DOS
------- ------------
Allows you to enter DOS while {COMMO} remains in memory.
[Alt-U] Multi Number Dialing
------- --------------------
Multiple numbers may be "marked" in the Dialing Directory, then
automatically dialed in sequence until a connection is established.
Features the ability to "skip" or "remove" any number from the
queue. Also used in conjunction with Dialing Strings on the command
line and in the MARK function. See "Command Line Options" and
"Programming {COMMO} Macros" for details.
Welcome to {COMMO} (tm) page 5
[Alt-X] Exit from {COMMO}
------- -----------------
Terminates program, exits back to DOS. May be pressed from the
Terminal Screen, Dialing Directory or Macro Processor.
[Alt-1] Capture File Options
------- --------------------
When Capture is OPEN all information written to your screen will be
saved to the designated disk file. This command allows you to
OPEN/CLOSE the Capture File and to change to a different file. See
also "Screen Image Save."
[Alt-2] Print Log Toggle
------- ----------------
Turns the Print Log ON/OFF. When ON all information written to your
screen will be printed to LPT1. Handy for getting hard-copy of file
lists, messages, etc.
[Alt-3] Sound Control Toggle
------- --------------------
Enables/disables all sounds, including alarms and beeps. Alarms and
the number of alarm rings are individually configurable in the
Configuration File and in the Macro File.
[Alt-4] ANSI Emulation Toggle
------- ---------------------
Turns ON/OFF ANSI terminal emulation, used by many host systems to
provide cursor positioning, color and editing functions.
[Alt-5] AutoBaud Toggle
------- ---------------
Allows {COMMO} to adjust automatically to the data rate (speed of
transmission) of the system you are calling.
[Alt-6] Local Echo Toggle
------- -----------------
Used for calling a host system that does not echo what you type.
The host must send a linefeed after each carriage return that you
type.
[Alt-7] Chat Mode Toggle
------- ----------------
Used for calling another "terminal" program that does not echo what
you type. Adds a linefeed after each carriage return.
Welcome to {COMMO} (tm) page 6
[Alt-0] Signal Light Toggle
------- -------------------
Turns on/off the "modem lights" display on the status line. Shows
the state of the RS-232 signals, including send/receive.
[Alt-=] Doorway Mode
------- ------------
Toggles Doorway Mode on/off. Doorway Mode turns off the status line
giving a 25-line display and keyboard support for running programs
remotely.
Uploading / Downloading
-----------------------
{COMMO} requires the use of external programs such as Omen
Technology's DSZ.COM to do protocol transfers of files. The Macro
File is pre-configured with macros that execute DSZ to perform
Xmodem, Ymodem and Zmodem uploads and downloads. Use the Alt-M key
command to select one of these macros.
Installing DSZ is very easy. Just place DSZ.COM in a directory
which is specified in your DOS path statement. If you don't have a
path statement in your AUTOEXEC.BAT file, place DSZ.COM in your
C:\COMMO directory. Then type "path c:\commo<cr>" before you call
{COMMO}.
The Internal Editor
-------------------
{COMMO}'s Internal Editor is easy to use, yet fully functional,
allowing you to maintain your Configuration File, Dialing Directory
and Macro File with lines up to 255 characters long. Full details
in Online Help.
Welcome to {COMMO} (tm) page 7
---------------
Getting Started
---------------
First make sure that all the files from the {COMMO} package are in
one directory or on one diskette. Five of these files are used to
run the {COMMO} program:
COMMO.COM the Program File
COMMO.CFG the Configuration File
COMMO.FON the Dialing Directory File
COMMO.MAC the Macro File
COMMO.HLP the Online Help File
There are two ways to make sure that {COMMO} will be able to find
all of its files. The first method is the simplest and should be
used if you are not too familiar with DOS commands:
Make sure you are logged into the directory or disk drive where the
files are located. Then simply type "commo" at the DOS prompt. If
your files are in the directory "C:\COMMO" you would type:
c:<cr>
cd \commo<cr>
commo<cr>
(<cr> is the [Enter] or Return key)
Or if the files are on a diskette in drive A you would type:
a:<cr>
commo<cr>
{COMMO} will remember where the files are, so you will be able to
change directory or drive later without concern.
The second method is a little more advanced, but allows you to run
{COMMO} no matter what directory or drive you are currently logged
into:
Use the SET command in DOS to store the {COMMO} path into the
"environment." If you place this command in your AUTOEXEC.BAT file
you won't have to change directories or diskettes to run {COMMO}.
If your files are in the directory "C:\COMMO" the command would be:
set commo=c:\commo
If the files are on the diskette in drive B the command would be:
set commo=b:
Do not use any extra spaces in the SET command. And remember to
place the {COMMO} directory or drive in your PATH command.
IMPORTANT: Remember to execute the "set commo=" command again if
Welcome to {COMMO} (tm) page 8
you install {COMMO} into a different directory or onto another
drive. Otherwise the new copy will refer back to the old directory
and use the old support files. This is a common error and can cause
a lot of head scratching.
--------------------
Command Line Options
--------------------
Dialing Strings
_______________
Dialing Strings may be placed before any command line switches.
{COMMO} will search the Dialing Directory for each string and mark
the first entry where a match is found (case is ignored).
The strings may consist of any part of a Dialing Directory entry
line and may be separated by commas or spaces. The following
characters may not appear in a Dialing String: space, comma, slash
(/), left or right curly brace.
After entries in the Dialing Directory are marked {COMMO} will check
for a Startup Macro (see below). If no valid macro is present Multi
Number Dialing of the marked systems will begin. If a macro is
present it will be started instead.
The Modem Initialization String will be sent before dialing begins
unless the switch "/i=no" is present on the command line.
Examples:
commo telegodzilla joes-bbs 4567
commo zilla,joes,4567
IMPORTANT: Your modem should be turned on and ready to receive the
Modem Initialization String before starting the program.
Switches
________
/c=filename default: COMMO.CFG
Alternate Configuration File. The alternate file must reside in the
{COMMO} home directory.
/i=[yes/no] default: none
This switch may be used to inhibit the Modem Initialization when
Dialing Strings or a Startup Macro are present: "/i=no."
It may also be used to bypass the question "Initialize modem?" on
the Initialization Screen: "/i=yes" or "/i=no."
Welcome to {COMMO} (tm) page 9
/m=macro-id default: none
Startup Macro. The "macro-id" is a three character macro
identifier. If the macro is found in the Macro File it will be
started. If the macro is not found the switch will be ignored.
The Modem Initialization String will be sent before starting the
macro unless the switch "/i=no" is present on the command line.
/o=bf,bf default: 17,47
Colors for Initialization Window. The first field is the text area,
the second field is the border. The "bf" is the same format as in
the Configuration File (see Online Help for details). Does not
apply to monochrome displays.
Example:
commo joes zilla /c=other.cfg /m=abc
Two systems will be marked in the Dialing Directory. The alternate
Configuration File "other.cfg" will be used (it must be located in
the {COMMO} home directory). The macro "abc" will be started if it
exists in the Macro File.
Note that case is ignored and the order of the switches is
unimportant (Dialing Strings must be first, however).
---------------------
{COMMO} Support Files
---------------------
The {COMMO} files are standard ASCII text files and may be modified
with any editor (or word processor in "non-document" mode). In
addition all but the Online Help File may be edited with {COMMO}'s
Internal Editor.
Following is a brief description of each file.
1) The Configuration File contains settings for many important
parameters. When you first run {COMMO} you should use the Alt-G
key command to edit this file to your own needs. Save the file
by pressing [Esc], then "y" or [Enter]. Details for each item in
this file are given in Online Help.
2) The Dialing Directory File. This file contains information about
the systems you will be calling, including the telephone numbers,
passwords, communication parameters and macro link. Use the
Alt-D key command to dial numbers and to edit this file. Details
are given in Online Help.
3) The Macro File. Use the Alt-M key command to select a macro for
Welcome to {COMMO} (tm) page 10
execution and to edit this file. A complete description of
{COMMO} macros is given in the section "Programming {COMMO}
Macros" in this document. A summary of macro functions and key
designators is given in Online Help.
4) The Online Help File. Very extensive Online Help is available at
the touch of a key from within {COMMO}. In fact most of the
operating details of the program are ONLY obtained from Online
Help. See "How to Use Online Help" later in this document.
------------------------
Initialization Procedure
------------------------
When {COMMO} begins running it will attempt to load the
Configuration File (default is COMMO.CFG), COMMO.FON and COMMO.MAC.
Any problems encountered will be reported in the Initialization
Window. These problems must be corrected before restarting the
program.
Automatic modem initialization will occur if Dialing Strings are
present (and matches are found), or if the Startup Macro Switch is
present (see "Command Line Options").
Otherwise you will be asked if you want to initialize your modem.
Answer "yes" unless you are already on line.
Please note that {COMMO} does NOT change the video display mode.
This means simply that the video mode must be set (usually 25 by 80
color or monochrome) when you call up the program. This allows you
to set video parameters such as the screen border color and not have
them rudely changed when the program is started.
If the display does not look right try executing the DOS command
"mode co80" or "mode bw80" prior to calling {COMMO}.
---------------
Terminal Screen
---------------
The Terminal Screen allows you to see the characters coming in from
the serial port. Also any characters that you type will be sent to
the serial port. If you are connected to another system you will be
communicating with that system.
From The Terminal Screen you may call upon any of {COMMO}'s features
by holding the Alt key and pressing a letter or top row number key,
then releasing both keys. To see a list of {COMMO} key commands use
[Alt-H].
To return to The Terminal Screen simply press [Esc].
Welcome to {COMMO} (tm) page 11
----------------------
How to Use Online Help
----------------------
Most of {COMMO}'s operating details are available as Online Help by
pressing [Alt-H] from anywhere in the program. The Online Help
support file, COMMO.HLP, must be in the {COMMO} home directory or
you will get an error message, "Unable to open Help file."
This message will also be issued if there is not enough memory
(approx. 60k) to load the Online Help file. Note that the file is
retained in memory until {COMMO} requires memory for some other
program function. It will automatically be re-read when necessary.
Once the Help window is entered you will see the Help control keys
listed at the bottom of the screen. At this point you may obtain
more detailed information on using Online Help by typing "H".
-----------------------
Modifying the Help File
-----------------------
Once you are familiar with {COMMO} you may wish to reduce the size
of the Help File. Feel free to edit this file with an external
editor -- you can even set up your own menu. The search keys are
the bars separating the topics. The two digit number in the middle
of the bar may be changed to create your own key. Remember to keep
a backup of the original Help File.
Welcome to {COMMO} (tm) page 12
--------------------------
Programming {COMMO} Macros
--------------------------
See the sample Macro File, COMMO.MAC, for examples of more complex
macro programming.
{COMMO} macros may be used to perform many different operations, yet
their structure is simple and consistent. Here are some examples:
{alk} {clear} {stop}
This macro will set Alt-K to clear the screen. "alk" is called a
"macro identifier" or "macro-id" for short. It may be any three
characters. Certain macro-id's are reserved to represent keys on
the keyboard, such as "alk" in this case, and are called "key-id's."
CLEAr is called a "function" and is represented by four or more
characters of which only the first four are necessary.
The STOP function is used here to terminate the macro and may be
used in either it's long or short form:
... {stop} long form
... {} short form
Note that the default key to clear the screen, Alt-C, is still in
effect unless it is reassigned.
All {COMMO} key-id's and functions are described in later sections.
They are also summarized in Online Help.
{abc} {setlook 30,hng,3,|} {lookfor first name?} {send Fred|} {}
In this macro the SETLook function will set timeout parameters for
subsequent LOOKfor functions. The LOOKfor will then watch the data
coming in from the modem and when it sees "first name?" it will pass
control to the next function. In this case the next function, SEND,
will send the string "Fred" followed by a carriage return (indicated
by the "|"). Again the STOP function terminates the macro.
{bbs} {capture y,commo.cap} {call abc}
{asciiup textfile.xyz,:} {}
This macro will open the capture file "commo.cap" (the "y" means
"yes", open the file). Then it will execute the previously
described macro "abc." Then it will ASCII Upload the file
"textfile.xyz" using the pacing character ":".
Note that macros may occupy more than one line in the Macro File.
Welcome to {COMMO} (tm) page 13
Macro-id and Function Summary
-----------------------------
Macro-id's must be three characters (any character that may be
entered in the Internal Editor is valid). Case is ignored so that
"GK1" is the same as "gk1" or "gK1."
Macro-id's may appear anywhere within macros and may be the targets
of CALL and GOTO functions.
Function names are four or more characters and may always be
abbreviated to the first four. Case is ignored here as well.
Remember to terminate each macro with a STOP function unless it
already ends with a GOTO or RETUrn. If you don't, processing will
continue with the next macro in your Macro File!
Additional Macro File Rules
---------------------------
The Macro File is entirely free-form. Macro-id's and functions may
appear on the same line or on separate lines. More that one
macro-id may appear on the same line (only the first may be executed
from the Macro File window by pressing [Enter]):
{ala} {clear} {} {alw} {sound n} {}
Comments may appear anywhere outside the curly braces.
Executing Macros
----------------
Macro execution may be started in a number of ways:
1) Open the Macro Processor window (Alt-M), position the Selector
Bar on the macro-id and press [Enter] (the macro-id must be the
first string on the line).
2) If the macro-id is also a key-id, then you may press that key
from the Terminal Screen. If the same key-id is used more than
once, the first occurrence will be used.
3) The macro may be linked to a Dialing Directory entry. In this
case it will be CALLed when a connection is established with that
system. This macro should end with a RETUrn.
4) The macro may be specified on the command line with the switch
"/m=". It will be started as soon as {COMMO} has initialized
itself.
5) The macro may be an argument of another function such as CALL,
GOTO, DIAL or SETLook (these are detailed in a later section).
Welcome to {COMMO} (tm) page 14
Additional Macro Execution Rules
--------------------------------
ASCII keys may be typed to the serial port during LOOKfor, PAUSe and
HOLD functions. To send an Esc code press Ctrl [ (Ctrl + left
bracket).
The Macro Processor will execute functions in order until one of the
following conditions occur:
1) A CALL, GOTO, RETURn, STOP or EXIT is encountered.
2) Control is transferred to an alternate macro from certain
functions when a special condition occurs. An example of this is
the SETLook function. The alternate will execute when a
subsequent LOOKfor times out.
3) The end of the Macro File is reached.
Current function execution may be terminated by pressing [Esc]. For
example, to terminate a PAUSe or HOLD prematurely.
Overall macro execution may be terminated by pressing [Ctrl-Break].
This will issue an [Esc] to the currently executing function, then
terminate macro processing and return to the Terminal Screen.
Macro errors will also terminate macro execution and bring up the
Macro Error window, indicating the location of the problem.
Some macro functions show their current action on the status line at
the bottom of the screen. In addition a "face" character in the
middle of the status line indicates that a macro is executing.
Welcome to {COMMO} (tm) page 15
-----------------------
{COMMO} Macro Functions
-----------------------
The purpose of this section is to show the syntax of each function
and the meaning of its arguments through examples. Details on
functions which are also default key commands may be found in Online
Help. Other functions will be explained in this section.
Function names are shown with their four-letter abbreviations in
uppercase. The following conventions are used in many functions:
"y" or "yes" is used to indicate "yes", "on", "open", etc.
"n" or "no" is used to indicate "no", "off", "close", etc.
This provides a highly consistent macro structure which is very easy
to remember. When a function is also associated with a default key
command, the lack of arguments will cause the function to behave
like the key command -- bringing up a window, for example.
Function Arguments
------------------
Arguments are the parameters that follow the function name. One
space separates the function name from the arguments (extra spaces
should be avoided). Multiple arguments are separated by commas.
{bbs} {capture y,commo.cap} {call abc}
{asciiup textfile.xyz,:} {return}
Here the function CAPTure has two arguments: "y" and "commo.cap."
{abc} {lookfor first name?} {send Fred|} {}
The function LOOKfor has one argument: "first name?". Quotation
marks are not used to enclose data strings or filenames in {COMMO}
macros.
Welcome to {COMMO} (tm) page 16
ALARm
-----
Default key: none
Description: Ring the alarm
Examples:
{alarm} Ring alarm, ring count in Config. File
{alarm 2} Ring alarm 2 times
ANSI
----
Default key: Alt-4
Description: Set ANSI emulation toggle
Examples:
{ansi} Toggle ANSI emulation on/off
{ansi y} Turn on ANSI emulation
{ansi n} Turn off ANSI emulation
ASCIiup
-------
Default key: Alt-A
Description: Upload an ASCII (text) file
Examples:
{asci} Open ASCII Upload window
{asci file.xyz,:} Upload "file.xyz." Use ":" for pacing
{asci file.xyz} Same, but use current pacing character
{asci file.xyz,} Same, but no pacing
{asci ,?} Set current pacing character to "?"
{asci ,} Set current pacing to "no" pacing
AUTObaud
--------
Default key: Alt-5
Description: Set autobaud toggle
Examples:
{auto} Toggle autobaud on/off
{auto y} Turn on autobaud
{auto n} Turn off autobaud
Welcome to {COMMO} (tm) page 17
BEEP
----
Default key: none
Description: Sound a beep
Examples:
{beep} No arguments
BREAk
-----
Default key: Alt-B
Description: Send a break
Example:
{break} No arguments
CALL
----
Default key: none
Description: Execute another macro
Example:
{call abc} Execute macro abc
If the macro "abc" executes a RETUrn function, then control returns
to the function following the CALL.
Note that macros may be nested up to 32 deep. This includes macros
called from other functions such as SETLook and DIAL.
CAPTure
-------
Default key: Alt-1
Description: Capture File Options
Examples:
{capture} Open Capture File Options window
{capture y} Open current Capture File
{capture n} Close current Capture File
{capt y,c:\commo\file.xyz} Open indicated Capture File
{capt n,c:\dl\newfile.cap} Close current Capture File, set new
file as indicated
Welcome to {COMMO} (tm) page 18
CHATmode
--------
Default key: Alt-7
Description: Set chat mode toggle
Examples:
{chat} Toggle chat mode on/off
{chat y} Turn on chat mode
{chat n} Turn off chat mode
CLEAr
-----
Default key: Alt-C
Description: Clear Terminal Screen to default colors
Example:
{clear} No arguments
CONFig
------
Default key: Alt-G
Description: Edit Configuration File
Example:
{config} No arguments
DIAL
----
Default key: Alt-D, Alt-U
Description: Dialing Directory
Examples:
{dial} Open Dialing Directory window (like Alt-D)
{dial ,} Multi Number Dial (like Alt-U)
{dial 25,abc} Multi Number dial with try count
25 Maximum number of dialing tries. If no connection is
established when the try count is exhausted, the macro in
the second argument will be started. May be 0 to 999. "0"
means unlimited.
abc Macro to GOTO if the try count in the first argument is
exhausted. If no macro is specified or if the macro-id is
invalid, control will pass to the next function.
Default arguments are: Dialing tries 0 (unlimited)
Macro none
Welcome to {COMMO} (tm) page 19
Null arguments in the DIAL function will revert to these defaults.
Marked numbers will be redialed in sequence. Numbers may be marked
in several ways:
1) Manually in the Dialing Directory window.
2) By placing Dialing Strings on the command line.
3) Using the MARK macro function.
If a connection occurs there are two possibilities:
1) If a valid macro is specified in the Dialing Directory, that
macro will be started. When a RETUrn function is
encountered {COMMO} will continue dialing other numbers if
any are marked. When no more marked numbers are found,
control returns following the DIAL function.
2) If no macro is specified in the Dialing Directory, control
is returned to the Terminal Screen and macro processing is
terminated.
See also the functions: MARK, UNMArk.
EXECute
-------
Default key: none
Description: Execute a DOS command
A number of special parameters are available to the EXECute function
which will either substitute the current value of a variable or
perform a specific action before/after command execution:
%i general user Input prompt
%p current serial Port no. (1-4)
%s current Speed (data rate)
%u current Upload directory (from Config)
%d current Download directory (from Config)
%c current Capture file (use Alt-1 to check)
%a sound Alarm at end of command execution
%w Wait before returning to Terminal Screen
%% insert an actual "%" into the command
"%i" may be used more than once in a command and will result in a
prompt for input in the EXECute DOS Command window. This is an
opportunity to enter a filename or any other information pertinent
to the execution of the command.
"%w" causes a wait before restoring the Terminal Screen. This is
useful if you need to see the results of the command execution.
A wait before and after each EXECute function may be forced by
starting a macro with [Ctrl-Enter] instead of [Enter] (from the
Welcome to {COMMO} (tm) page 20
Macro Processor window only).
Examples:
{exec dsz port %p speed %s sz %u\%i %a%w}
{COMMO} will prepare the DSZ command by substituting the "%"
parameters, then call DOS to execute the program. The alarm will
sound at completion and {COMMO} will wait for a keypress before
resuming.
{exec list %c}
The LIST program will be executed with the current Capture File
as a command line argument. {COMMO} will return immediately to
the Terminal Screen when LIST exits.
EXEN
----
Default key: none
Description: Execute a DOS command, do not clear the screen
This function is exactly the same as EXECute, but the Terminal
Screen is not cleared when the command is sent to DOS. It is used
to prevent the screen from "flickering" when programs or DOS
commands execute rapidly.
Examples:
{exen del c:\commo\commo.cap}
{exen ren commo.cap joes-bbs.cap}
EXIT
----
Default key: Alt-X
Description: Exit {COMMO}
Example:
{exit} No arguments
GOTO
----
Default key: none
Description: Transfer control to a macro-id
Example:
{goto x21} Control transferred to "x21"
Welcome to {COMMO} (tm) page 21
HANGup
------
Default key: Alt-Q
Description: Disconnect by dropping DTR
Examples:
{hangup} Prompt user for disconnect
{hangup y} Disconnect without prompting
HELP
----
Default key: Alt-H
Description: Open Online Help window
Example:
{help} No arguments
HOLD
----
Default key: none
Description: Hold until specified time of day (24 hour format)
Examples:
{hold 3:30} Hold until 3:30 am
{hold 16:10} Hold until 4:10 pm
{hold 0:00} Hold until midnight
INITmodem
---------
Default key: Alt-O
Description: Send modem initialization string
Example:
{init} No arguments
LIGHts
------
Default key: Alt-0
Description: Set signal lights toggle
Examples:
{lights} Toggle signal lights on/off
{lights y} Turn on signal lights
{lights n} Turn off signal lights
Welcome to {COMMO} (tm) page 22
LOCAlecho
---------
Default key: Alt-6
Description: Set local echo toggle
Examples:
{local} Toggle local echo on/off
{local y} Turn on local echo
{local n} Turn off local echo
LOOKfor
-------
Default key: none
Description: Look for a string in the modem input stream
Example:
{setlook 60,abc,4,n|} Set parameters
{lookfor first name?} Look for the string "first name?"
{look ^(COMMO^)} Look for the string "{COMMO}"
Parameters controlling LOOKfor execution are set with the SETLook
function, which should be executed before any LOOKfor functions.
See description of SETLook function for details.
The LOOKfor function will watch for the requested string to appear,
then macro execution will continue with the next function.
Case will be ignored and ANSI control sequences will be stripped
out. Thus you needn't be concerned about remembering if any
characters were upper or lower case, nor do you have to tell the
remote to turn off ANSI graphics.
Note that there are special rules for representing characters in
LOOKfor strings. See Appendix D "Strings in {COMMO} Files" for
details.
MACRo
-----
Default key: Alt-M
Description: Open Macro Processor window
Example:
{macro} no arguments
Welcome to {COMMO} (tm) page 23
MARK
----
Default key: none
Description: Mark Dialing Directory entries for dialing
Example:
{mark joes-bbs,file-city} Mark entries for dialing
Dialing Strings may be separated by spaces or commas.
{COMMO} will search the Dialing Directory for each string and mark
the first entry where a match is found. Case is ignored.
The strings may consist of any part of a Dialing Directory entry
line. However the following characters may not appear in a dialing
string: space, comma, slash (/), left or right curly brace.
See also the functions: DIAL, UNMArk.
NOOP
----
Default key: none
Description: No-op function, does nothing
Example:
{noop} no arguments
PARMs
-----
Default key: Alt-L
Description: Change communication parameters
Examples:
{parms 2,2400,8} Set Com2, 2400 bps, 8,n,1
{parms 1,19200,7} Set Com1, 19200 bps, 7,e,1
PASSword
--------
Default key: Alt-P
Description: Send current password
Example:
{password} No arguments
The current password is obtained from the Dialing Directory entry
whenever a number is dialed. If no password is specified no
characters will be sent.
Welcome to {COMMO} (tm) page 24
PAUSe
-----
Default key: none
Description: Pause for up to 999 seconds
Example:
{pause 25} Pause for 25 seconds
PRINtlog
--------
Default key: Alt-2
Description: Set print log toggle
Examples:
{print} Toggle print log on/off
{print y} Turn on print log
{print n} Turn off print log
RETUrn
------
Default key: none
Description: Return from a CALLed macro
Example:
{return} no arguments
This function will return control to the function following the most
recent CALL. It should also be used to RETUrn from Dialing
Directory macros.
SCREen
------
Default key: Alt-I
Description: Screen Image Save
Examples:
{screen} Open Screen Image Save window
{screen y} Append screen image to current file
{screen y,commo.scn} Append screen image to indicated file
{screen n,c:\file.xyz} Change current screen image pathname
Welcome to {COMMO} (tm) page 25
SEND
----
Default key: none
Description: Send a string to the modem
Example:
{send Fred|~~Brucker|~~#|} Send my first and last name with
carriage returns and 1 second
delays, then send the current
password and <cr>.
Note: see Appendix D "Strings in {COMMO} Files" for information on
how to represent any character in a SEND function.
SETLook
-------
Default key: none
Description: Set parameters for LOOKfor functions
Example:
{setl 60,abc,4,n|} Set LOOKfor parameters
60 LOOKfor timeout. Maximum time in seconds to look for a
string. If the string is not found in the allotted time,
the macro in the second argument will be started. May be 0
to 999. "0" means forever.
abc Timeout macro. Macro to GOTO if the time in the first
argument expires. If no macro is specified or if the
macro-id is invalid, control will pass to the next function.
4 Prompt timeout. During a LOOKfor function unwanted prompts
may appear like "Press any key" or "More [Y/n]", etc.
This argument is the time in seconds to wait at a prompt (no
input from the modem) before sending the string in the
fourth argument. Usually you would send "|" or "n|".
When the string is sent the process is restarted, allowing
any number of prompts to be satisfied (until the LOOKfor
itself is satisfied or times out).
Make sure this value is high enough to give the host system
time to "think" when it is in between prompts. Some systems
take longer to do things. May be 0 to 999. "0" means
forever.
n| Prompt response. String to send when the time in the third
argument runs out.
The SETLook function will set parameters for any subsequent
LOOKfor's. SETLook may be executed at any time to modify the
parameters.
Welcome to {COMMO} (tm) page 26
Default arguments are: LOOKfor timeout 0 seconds
Timeout macro none
Prompt timeout 0 seconds
Prompt response none
Null arguments in the SETLook function will revert to these
defaults.
SHELl
-----
Default key: Alt-S
Description: Shell to DOS
Example:
{shell} No arguments
SOUNd
-----
Default key: Alt-3
Description: Set master sound toggle
Examples:
{sound} Toggle master sound on/off
{sound y} Turn on master sound
{sound n} Turn off master sound
STOP
----
Default key: none
Description: Halt macro execution
Examples:
{stop} No arguments
{} Short form
UNMArk
------
Default key: none
Description: Unmark all entries marked for dialing in the Dialing
Directory
Example:
{unmark} No arguments
See also the functions: DIAL, MARK.
Welcome to {COMMO} (tm) page 27
-------------------------
Table of {COMMO} Key-id's
-------------------------
Key-id's are also macro-id's with the added advantage that the macro
can be started by pressing the assocaiated key from the Terminal
Screen. Most "special" keys may be assigned this way. If the same
key-id appears more than once, the first occurrence will be used.
Note that key-id's are case insensitive. The caret (^) indicates
the Ctrl key.
Key Name Key-id Key Name Key-id
________ ______ ________ ______
Normal-F1 nf1 Normal-F10 nf0
Ctrl-F1 cf1 Ctrl-F10 cf0
Shift-F1 sf1 Shift-F10 sf0
Alt-F1 af1 Alt-F10 af0
Alt-A ala Alt-Z alz
Alt-1 al1 Alt-0 al0
Alt = al= Alt - al-
Escape esc Grey * gr*
Grey - gr- Grey + gr+
Backspace bsp ^Backspace cbs
Tab tab Shift-tab stb
Enter ent ^Enter cen
Home hom End end
PgUp pgu PgDn pgd
Up-Arrow upa Down-Arrow dna
Left-Arrow lfa Right-Arrow rta
Insert ins Delete del
^Home chm ^End cnd
^PgUp cpu ^PgDn cpd
^Right-Arrow cra ^Left-Arrow cla
Keypad-0 kp0 Keypad-9 kp9
Keypad-. kp. ^PrtSc cpr
Welcome to {COMMO} (tm) page 28
---------- ---------------------
Appendix A Setting Up Your Modem
---------- ---------------------
Please be aware that there are many different modems in use and that
it is of the utmost importance that you configure your modem to work
correctly with {COMMO}. A few tips will be given here, but they are
no substitute for the detailed installation instructions in your
modem manual!
When {COMMO} is started a command string will be sent to the modem
called the Modem Initialization String. You must make certain that
the correct string is set up in your Configuration File (Item 4).
This string will perform part or all of the modem setup depending on
the type of modem. Examples will be given for the most common
types.
If your modem is external to your computer, be sure you have
followed the installation instructions carefully and that the cable
is connected to the computer's serial port. It is wise to turn off
power to the computer and the modem when connecting or disconnecting
any cables.
In any case note the number of the serial port that you have used --
Com1, Com2, ... , etc. The numeric part of the serial port number
(1, 2, ... ) must be placed in Item 1 of the Configuration File.
Also check the default speed in Item 2.
1200 bps Modems
_______________
Most 1200 bps modems have switches on them which must be set to
provide the proper interaction with your computer and with {COMMO}.
Consult your modem manual concerning these switches and pay
particular attention to the following:
1) Enable command recognition. Allows the modem to recognize
commands (dial, set registers, etc.). Must be in the "enable"
position or modem will be unusable.
2) Send result codes in English. This switch should be set so that
the modem will send verbal responses to commands instead of
numbers. This is usually controlled by a command also (such as
ATV1).
3) Respond to DTR (data terminal ready). This should NOT be in the
"ignore" position. This switch allows the computer to signal the
modem to hang up.
4) Force carrier detect. This switch should be set to "respond to
carrier detect" or "allow true carrier."
Here is an example modem initialization string (Configuration File
Item 4) which will set up a 1200 bps modem and override the switch
settings (if possible):
Welcome to {COMMO} (tm) page 29
4 * {AT S0=0 S7=45 E0 Q0 V1 X1 |} Modem init string
The most important command is the "X" command, since its function
varies the most from modem to modem. The "X" command determines
which responses the modem will generate during dialing (e.g.
CONNECT, BUSY, etc.). It may also activate an additional modem
feature such as automatic redialing which will interfere with
{COMMO}'s own redialing procedure.
Your modem manual gives a description for each level of the "X"
command: X0, X1, X2, ... , etc. Generally you want to use the
highest level that does not activate undesirable features. If you
will be using {COMMO}'s AutoBaud feature you will need the extended
connect responses such as CONNECT 1200. Also the BUSY response
should be provided if possible. In any case you should modify the
Modem Initialization String to work with your particular modem.
2400 bps and higher
___________________
Modems which operate at 2400 bps and higher generally have commands
to replace the switches. These commands may be given every time you
start {COMMO} or they may be permanently remembered by modems which
have "non-volatile" memory.
It will be assumed here that the commands are given every time you
start {COMMO}. If you wish to place the settings in non-volatile
memory, consult your modem manual on how to do this. Here is an
example initialization string for 2400 bps (and higher) modems:
4 * {AT S0=0 S7=45 E0 Q0 V1 X4 &C1 &D2 |} Modem init string
See the comments above concerning the "X" command since they apply
to these modems as well.
If {COMMO} is already running you may edit the Configuration File
with the Alt-G key command, change the modem initialization string
(save the file), then use the Alt-O key command to send the string
to the modem. Normally the string is sent to the modem when {COMMO}
is started.
Welcome to {COMMO} (tm) page 30
---------- --------------------
Appendix B {COMMO} and DESQview
---------- --------------------
Special care has been taken to insure that {COMMO} is compatible
with Quarterdeck Office Systems' DESQview(tm), a multi-tasking
supervisor. DESQview allows more than one program to execute at the
same time.
A sample Program Information File (CO-PIF.DVP) has been included in
the {COMMO} package for your convenience. This file has been set up
to define a 120k memory window, allowing DSZ and LIST to be run from
the Macro Processor.
If a DOS command (or program run from the Shell to DOS) will not
execute due to insufficient memory, this number will have to be
increased. Be sure to test DOS commands with a "wait" at the end so
that you can see any error messages (see EXEC function).
You may be able to make this window smaller by reducing the size of
{COMMO}'s support files and/or by running smaller programs with
Shell to DOS or with the Macro Processor.
CO-PIF.DVP can be changed with the CP (Change Program) command on
the Open Window menu. You may also want to change the directory
information or other parameters.
Here are some tips on using {COMMO} with DESQview:
If you switch to another task, do not attempt to access any files
which may be in use in the {COMMO} window. Examples are the
Capture File, the Screen Image File and files that may be
currently involved in a file transfer (upload or download). The
result may be a loss of part or all of the data in the file.
This is a general DESQview no-no. You may freely access these
files in the Shell to DOS or Macro Processor features of {COMMO}
(within the same window).
If the window is too small, {COMMO} will not be able to load the
Online Help file. To use Online Help you will need a window with
about 60k of memory available AFTER loading {COMMO}. Since the
Online Help file is loaded dynamically, you needn't be concerned
if you don't intend to use it.
The video display may seem less smooth in DESQview. This is a
result of {COMMO} using the fastest possible display method, and
is quite normal.
The Snow Checking toggle should not be used when {COMMO} is run
under DESQview. If you see "snow" type interference in your CGA
display, use DESQview's own snow checking (request "synchronized
access" in the Setup program).
Welcome to {COMMO} (tm) page 31
---------- -----------------
Appendix C XON/XOFF Protocol
---------- -----------------
The XON/XOFF protocol is in effect at all times. XON/XOFF is
especially important when the Print Log is on, since the printer is
a slow device relative to the transmission rate of data.
{COMMO} will send an XOFF (^S) to pause the remote when data is
coming in too fast, and then send an XON (^Q) when it has caught up.
If you attempt to type a character to the remote during a pause a
beep will sound (the character will be ignored). Try typing the
character again; if that fails turn off the Print Log.
This situation may arise, for example, if you want to type a ^K to
stop the output of the BBS (you probably want to stop the Print Log
at this point anyway).
Welcome to {COMMO} (tm) page 32
---------- ------------------------
Appendix D Strings in {COMMO} Files
---------- ------------------------
"Strings" are defined in {COMMO} as groups of characters enclosed
within curly braces, as: {I am a string}. Strings are used in the
{COMMO} support files (Configuration File, Dialing Directory, Macro
File) to contain parameters necessary to each file's function.
Curly braces may ONLY appear as delimiters to begin and end strings.
They may not appear in the commentary nor within strings.
ASCII Data Strings
__________________
Some of the strings in the {COMMO} support files are ASCII Data
Strings. These include:
Modem initialization string (Config. File)
Dial prefix (Config. File)
Dial suffix (Config. File)
Telephone number (Dialing Directory)
Password string (Dialing Directory)
Strings in Macro functions such
as SEND, SETLook and LOOKfor (Macro File)
Note that most of these are sent to the modem.
Some characters have special significance in these strings. Any
character in the extended ASCII chart may be included, although some
must be represented in a special way.
The following special characters may be used in ASCII Data strings:
The vertical bar (|) represents a carriage return.
The tilde (~) forces a one-half second delay (modem output only).
The pound sign (#), in the SEND function only, will cause the
current Password String to be sent in its place.
The caret (^) is used to represent ASCII values which may not be
entered from the keyboard:
0 ... ^@ 7 ... ^G 14 ... ^N 21 ... ^U
1 ... ^A 8 ... ^H 15 ... ^O 22 ... ^V
2 ... ^B 9 ... ^I 16 ... ^P 23 ... ^W
3 ... ^C 10 ... ^J 17 ... ^Q 24 ... ^X
4 ... ^D 11 ... ^K 18 ... ^R 25 ... ^Y
5 ... ^E 12 ... ^L 19 ... ^S 26 ... ^Z
6 ... ^F 13 ... ^M 20 ... ^T 27 ... ^[
Welcome to {COMMO} (tm) page 33
The caret (^) is also used to represent the following:
{ ... ^( the left curly brace
} ... ^) the right curly brace
| ... ^| the vertical bar
~ ... ^~ the tilde
# ... ^# the pound sign
^ ... ^^ the caret
These particular characters should only appear in this form, while
others such as ASCII 28 through 31 and those in the upper 128
extended character set may be typed using the Alt-numeric-keypad
method as follows:
1. Hold down the Alt key (and keep it down).
2. Enter the ASCII code in decimal using the numeric keypad keys
(1, 2 or 3 digits are ok).
3. Release the Alt key.
ASCII 28 through 31 may also be typed using the Ctrl key on your
keyboard:
28 ... Ctrl \
29 ... Ctrl ]
30 ... Ctrl 6
31 ... Ctrl -
All other characters are entered in the usual manner.
- end -